<template>
    <div id="homepage"  style="height: 100%;margin-left: -10px;margin-top: -10px">
        <el-row class="tac"  style="height: 100%">
            <el-col :span="3"  style="height: 100%">
                <el-menu
                        :default-active="1"
                        class="el-menu-vertical-demo"
                        mode="vertical"
                        @open="handleOpen"
                        @close="handleClose"
                        background-color="#545c64"
                        text-color="#fff"
                        active-text-color="#ffd04b"
                        style="height: 100%"
                        router="true"
                >
                    <el-menu-item :index="{path:'/ShouYe'}">
                        <i class="el-icon-menu"></i>
                        <span slot="title">导航二</span>
                    </el-menu-item>
                    <el-menu-item :index="{path:'/ciyun'}" >
                        <i class="el-icon-document"></i>
                        <span slot="title">导航三</span>
                    </el-menu-item>
                    <el-menu-item index="3">
                        <i class="el-icon-setting"></i>
                        <span slot="title">导航四</span>
                    </el-menu-item>
                    <el-menu-item index="4">
                        <i class="el-icon-setting"></i>
                        <span slot="title">导航五</span>
                    </el-menu-item>
                    <el-menu-item index="5">
                        <i class="el-icon-setting"></i>
                        <span slot="title">导航六</span>
                    </el-menu-item>
                </el-menu>
            </el-col>
        </el-row>
        <router-view style="width: 70%;height:auto;position: absolute;margin-top: -300px"></router-view>
    </div>

</template>

<script>
    export default {
        name: "HonePage",
        data() {
            return {
                activeIndex: '1'
            };
        },
        methods: {
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }
</script>

<style scoped>
    /*.homepage {*/
    /*    margin-top: -10px;*/
    /*    margin-left: -10px;*/
    /*    height: 100%;*/
    /*    width: 100%;*/
    /*}*/

</style>